RED = '\033[31m'
GREEN = '\033[32m'
YELLOW = '\033[33m'
BLUE = '\033[34m'
PURPLE = '\033[35m'
CYAN = '\033[36m'
NIL = '\033[0m'


def level_print(level, *args, **kwargs):
    print(' ' * level * 4, *args, **kwargs)


def color_print(color_code, text, **kwargs):
    print(f'{color_code}{text}{NIL}', **kwargs)


def R(text) -> str:
    return f'{RED}{text}{NIL}'


def G(text) -> str:
    return f'{GREEN}{text}{NIL}'


def Y(text) -> str:
    return f'{YELLOW}{text}{NIL}'


def B(text: str) -> str:
    return f'{BLUE}{text}{NIL}'


def P(text: str) -> str:
    return f'{PURPLE}{text}{NIL}'


def C(text: str) -> str:
    return f'{CYAN}{text}{NIL}'